<!--{include(pe_tpl('header.html'));}-->
<div class="lingquan_box">
	<div class="lingquan">
		<div class="lq_r fl"><i></i></div>
		<div class="lq_l fl">
			<div>{$info['quan_name']}</div>
			<p class="num">￥ {$info['quan_money']}</p>
			<div class="mat20 c888 font14">使用条件：{$info['quan_limitshow']}</div>
			<div class="mat15 c888 font14">有效日期：{$info['quan_sdate']} 至 {$info['quan_edate']}</div>
			<!--{if($info['quan_type'] == 'online'):}-->	
			<!--{if($info['quan_btn']['result']):}-->
			<div class="quan_btn sel" onclick="get_btn()">{$info['quan_btn']['show']}</div>
			<!--{else:}-->
			<div class="quan_btn">{$info['quan_btn']['show']}</div>	
			<!--{endif;}-->
			<!--{endif;}-->
		</div>
	</div>
</div>
<div class="content">
	<h3 class="mat10 mab20">此优惠券可用于以下商品</h3>
	<!--{foreach($info['list'] as $k=>$v):}-->
	<div class="prolist" <!--{if(($k+1)%5==0):}-->style="margin-right:0"<!--{endif;}-->>
		<a href="{pe_url('product-'.$v['product_id'])}" title="{$v['product_name']}" target="_blank">
			<div class="prolist_logo">
				<img src="{$pe['host_tpl']}image/pixel.gif" data-url="{$v['product_logo']}" title="{$v['product_name']}" class="js_imgload" />
				<!--{if($v['huodong_tag']):}--><div class="prolist_tag">{$v['huodong_tag']}</div><!--{endif;}-->
			</div>
			<p class="prolist_name">{$v['product_name']}</p>
			<p class="mat10">
				<span class="money1 fl"><span class="font18 mar3">¥</span>{$v['product_money']}</span>
				<!--{if($v['product_sellnum']):}--><span class="font12 fr c999">已售{$v['product_sellnum']}件</span><!--{endif;}-->
			</p>
			<div class="clear"></div>
		</a>
	</div>
	<!--{endforeach;}-->
	<div class="clear"></div>
	<div class="fenye mat15">{$db->page->html}</div>
	<div class="clear"></div>
</div>
<script type="text/javascript">
function get_btn() {
	pe_get("{$pe['host']}index.php?mod=quan&act=get&id={$info['quan_id']}", function(json){
		if (json.code == 1) {
			$(".quan_btn").text(json.data.show);
		}
	})
}
</script>
<!--{include(pe_tpl('footer.html'));}-->